-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kubectl shp for release #180
base: main
Are you sure you want to change the base?
Add kubectl shp for release #180
Conversation
From the SHP Grooming session, @liangyuanpeng is this PR ready for review? per the [WIP]. |
@qu1queee Thanks for your remind , I think it's ready for review. Will be working for submitting plugins to krew and automating release it ,after kubectl shp released. |
/lgtm Thanks for the contribution, @liangyuanpeng! 🙇♀️ /assign @SaschaSchwarze0 |
@otaviof: GitHub didn't allow me to request PR reviews from the following users: akram. Note that only shipwright-io members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. It is looking good. Would be nice to rearrange the fields to have id
first and to make sure we use consistent indentation. And thanks for looking into a replacement for the deprecated replacements
field.
.goreleaser.yml
Outdated
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}} | ||
main: ./cmd/shp/main.go | ||
binary: kubectl-shp | ||
id: kubectl-shp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some thoughts here: The id
should come first in my opinion as it severs mostly as an internal identifier and makes for better readability to start the list entry with its identifier.
Also, the new entry used a different indentation compared to the old one. It does not matter technically, but I think we should try to keep the same style within one YAML file.
- env: | |
- CGO_ENABLED=0 | |
goos: | |
- linux | |
- darwin | |
- windows | |
goarch: | |
- amd64 | |
- arm64 | |
flags: | |
- -trimpath | |
ldflags: | |
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}} | |
main: ./cmd/shp/main.go | |
binary: kubectl-shp | |
id: kubectl-shp | |
- id: kubectl-shp | |
env: | |
- CGO_ENABLED=0 | |
goos: | |
- linux | |
- darwin | |
- windows | |
goarch: | |
- amd64 | |
- arm64 | |
flags: | |
- -trimpath | |
ldflags: | |
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}} | |
main: ./cmd/shp/main.go | |
binary: kubectl-shp | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HeavyWombat can u re-review pls?
Change prefix cli to shp for release Signed-off-by: Lan Liang <[email protected]>
57f6af2
to
b496548
Compare
New changes are detected. LGTM label has been removed. |
/retest |
@liangyuanpeng: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@liangyuanpeng from the Shipwright Refinement meeting, can we help you here? |
/retest |
/ok-to-test |
Tests have no logs anymore and I cannot re-run them from the GitHub Actions UI. Will try another retry here and if this does not work, I am afraid I have to do a close and reopen. |
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@liangyuanpeng Could you have a look into rebasing this PR? The feature branch is behind some 15 commits. Just realized, I think @SaschaSchwarze0 mentioned that he has something in the working that will probably cover the Verify failure. So we need to wait for that fix, too. |
@HeavyWombat checking on the status of this. Should another community member rebase and re-submit this PR? |
I'll have a look tomorrow. |
Changes
Change prefix cli to shp for release
Add kubectl plugin of shp for release
Change
replacements
toname_template
for archive filesBecause
replacements
will be deleted and it's not correctly working for multiple archives.Ref from goreleaser:
https://goreleaser.com/deprecations/?h=replacements#archivesreplacements
Fixes #179
Related:
shp
as a kubectl plugin with Krew #102Tested
gorelease logs:
More info at https://github.com/liangyuanpeng/shipwright-cli/actions/runs/4696180341/jobs/8326032835
Submitter Checklist
Includes tests if functionality changed/was addedSee the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes
Maybe should be add release note after finished for krew?